﻿#pragma once
#include <qtextdocumentfragment.h>
#include "NotePadConfig.h"
#include <QTextDocumentFragment>
#include "iQTextDocumentFragment.h"
#include <QDebug>

class iQTextDocumentFragment :
    public QTextDocumentFragment
{
public:
    iQTextDocumentFragment(QTextDocumentFragment Fragment):QTextDocumentFragment(Fragment){}
    QString toMarkdown(QTextDocument::MarkdownFeatures features = QTextDocument::MarkdownDialectGitHub) const;
    QString toPlainText() const;
};

